﻿@model ModelBindingDemo.Models.Employee

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
</head>
<body>
    <div>
    @using (Html.BeginForm("Edit2", "Home", FormMethod.Post)) {
        
        @Html.ActionLink("Home1", "Index", "Home1")
        @:ID: @Html.TextBoxFor(x => x.ID) <br />
        @:First Name: @Html.TextBoxFor(x => x.FirstName) <br />
        @:Last Name: @Html.TextBoxFor(x => x.LastName) <br />

        <fieldset title="Address">
              Street: @Html.TextBox("EmpAddress.Street")
              Country: @Html.TextBoxFor(x => x.EmpAddress.Country)
              Zip: @Html.TextBoxFor(x => x.EmpAddress.PostalCode)
        </fieldset>


        <input type="submit" value="Post Back" />  
      }
        StatusMessage: @ViewBag.StatusMessage
    </div>
</body>
</html>
